﻿using System;
using System.Collections.Generic;
using System.Text;
using duia.Canteenpay.Domain.IRepository;
using duia.Canteenpay.Infrastructure.Domain;

namespace duia.Canteenpay.Domain
{
    /// <summary>
    /// 领域工厂
    /// </summary>
    public class DomainFactory
    {
        public DomainFactory()
        {

        }

        /// <summary>
        /// 获取仓储层实现
        /// </summary>
        /// <typeparam name="T"></typeparam>
        /// <returns></returns>
        public static T CreateRepositoryService<T>()
        {
            return AutofacBuilder.GetHttpService<T>();
        }

    }
}
